package cn.myframe.controller;

import org.junit.Test;
import org.springframework.data.redis.core.RedisTemplate;

import javax.annotation.Resource;
import java.util.HashMap;

/**
 * @Author: ynz
 * https://blog.csdn.net/xinhuashudiao/article/details/84906447
 */
public class HashController {

    @Resource
    private RedisTemplate<String, HashMap<String, Object>> redisTemplate;

    @Test
    public void TestHash() {
        redisTemplate.opsForHash().put("", "", "");
        redisTemplate.opsForHash();
        redisTemplate.exec();
    }
}
